/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vera.hibernate.dao;

import org.hibernate.Query;
import org.hibernate.Session;
import vera.hibernate.entity.CompanyProfile;
import vera.hibernate.util.HibernateUtil;

/**
 *
 * @author vgncr35g
 */
public class CompanyProfileDAO extends EntityDAO{
    public CompanyProfileDAO()
    {
        
    }
    
    public CompanyProfile getCompanyProfile()
    {
        Session s = HibernateUtil.openSession();
        Query q = s.getNamedQuery("getCompanyProfile");
        CompanyProfile companyProfile = (CompanyProfile) q.uniqueResult();
        s.close();
        return companyProfile;
    }
}
